Using Watch Expressions
The Watch
Expressions command shows a variable s name and value in the Watch window. It
updates the window whenever the variable s value changes. This feature is
useful during debugging to check the value of a variable. You can enter
expressions as well as variables.
{bmc bm4.MRB} To add a watch variable
1. In the GENERIC program, select the message
variable in the About function.
2. From the Debug menu, choose Watch Expression.
The selected message variable appears in the Watch Expression
text box.
3. Choose Add.
4. Choose OK. The Watch window opens, and it
includes the message variable.
5. Resize the Watch window so it is visible with
the source window displayed.
6. With the breakpoint in the GENERIC program
still in place, choose Go from the Run menu. The message variable
is updated to show its new value.
{bmc bm4.MRB} To remove the message
variable from the Watch Expression list
1. From the Debug menu, choose Watch Expression.
2. Select Message from the Watch
Expression list.
3. Choose Delete.
4. Choose Close.